global.display.add_keybinding('toggle-message-tray',
new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }),
Meta.KeyBindingFlags.NONE,
- Lang.bind(this, this.toggle));
+ Lang.bind(this, this.toggleAndNavigate));
this._summaryItems = [];
this._chatSummaryItemsCount = 0;
this._updateState();
},
+ toggleAndNavigate: function() {
+ // Grab the key focus so that GrabHelper knows
+ // that we have the key grab.
+ this._summary.grab_key_focus();
+ this.toggle();
+ },
+
hide: function() {
this._traySummoned = false;
this.actor.set_hover(false);